package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.PrivateMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PrivateMessageMapper {

    int insertPrivateMessage(PrivateMessage privateMessage);
    int updatePrivateMessageById(PrivateMessage privateMessage);
    PrivateMessage selectPrivateMessageById(Integer pmId);
    int deletePrivateMessageById(Integer pmId);
    int deletePrivateMessageByList(List<Integer> pmIdList);
    List<PrivateMessage> selectPrivateMessageAll(@Param("pmId") Integer pmId,
                                                 @Param("memberId") Integer memberId,
                                                 @Param("consultId") Integer consultId);

}
